package com.learncloud.entity.vo;

import com.learncloud.entity.VideoLabel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author : yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="VideoLabelVo对象", description="视频类别视图")
public class VideoLabelVo extends VideoLabel {

    @ApiModelProperty("子标签列表")
    private List<VideoLabel> children;

    public VideoLabelVo(VideoLabel item) {
        this.setSort(item.getSort()).setId(item.getId()).setStatus(item.getStatus()).setParentId(item.getParentId()).setName(item.getName());
    }
}
